package com.baidu.project15.chart26;

public class Client {
    public static void main(String[] args) {
        SearchContext jContext,sContext,uContext;
        jContext = new JavaSearchContext();
        sContext = new SQLSearchContext();
        uContext = new UMLSearchContext();
        jContext.setSuccessor(sContext);
        sContext.setSuccessor(uContext);
        String keyword = "UML类图绘制疑惑";
        jContext.search(keyword);
        String keyword1 = "SQL语句疑惑";
        jContext.search(keyword1);
        String keyword2 = "Java语法疑惑";
        jContext.search(keyword2);
        String keyword3 = "各种疑惑";
        jContext.search(keyword3);
    }
}